package com.meituan.sdk.model.pms.accounting.rollback;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 撤销入账
* This file was automatically generated.
*/
@ApiMeta(
    path = "/pms/accounting/rollback",
    businessId = 57,
    apiVersion = "10017",
    apiName = "rollback",
    needAuth = true
)
public class RollbackRequest implements MeituanRequest<RollbackResponse> {
    /**
    * <p data-diff-id="ct-diff-id-72ccecb6-8954-438a-83f1-e0f1220e53b1">酒店ID</p>
    */
    @NotNull(message = "hotelId不能为空")
    @SerializedName("hotelId")
    private Long hotelId;
    /**
    * <p data-diff-id="ct-diff-id-2a8fa2a3-ffd5-4548-8513-4af95fc7e2b1">账务ID列表</p>
    */
    @NotEmpty(message = "billItemIds不能为空")
    @SerializedName("billItemIds")
    private List<Long> billItemIds;

    public Long getHotelId() {
        return hotelId;
    }
    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }
    public List<Long> getBillItemIds() {
        return billItemIds;
    }
    public void setBillItemIds(List<Long> billItemIds) {
        this.billItemIds = billItemIds;
    }


    @Override
    public MeituanResponse<RollbackResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<RollbackResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "RollbackRequest{" + "hotelId=" + hotelId + "," + "billItemIds=" + billItemIds + "}";
    }
}
